package com.lrkj.phone.mapper;

import java.util.List;
import com.lrkj.phone.domain.AppUser;

/**
 * app用户Mapper接口
 *
 * @author yajun_ren
 * @date 2021-04-09
 */
public interface AppUserMapper
{
    /**
     * 查询app用户
     *
     * @param appUserId app用户ID
     * @return app用户
     */
    public AppUser selectAppUserById(String appUserId);

    /**
     * 查询app用户列表
     *
     * @param appUser app用户
     * @return app用户集合
     */
    public List<AppUser> selectAppUserList(AppUser appUser);

    /**
     * 新增app用户
     *
     * @param appUser app用户
     * @return 结果
     */
    public int insertAppUser(AppUser appUser);

    /**
     * 修改app用户
     *
     * @param appUser app用户
     * @return 结果
     */
    public int updateAppUser(AppUser appUser);

    /**
     * 删除app用户
     *
     * @param appUserId app用户ID
     * @return 结果
     */
    public int deleteAppUserById(String appUserId);

    /**
     * 批量删除app用户
     *
     * @param appUserIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteAppUserByIds(String[] appUserIds);

    /**
     * 根据open_id 获取用户信息
     *
     * @param openId
     * @return 结果
     */
    public AppUser selectAppUserByOpenId(String openId);


    /**
     * userName 获取用户信息
     *
     * @param userName  //手机号|账号
     * @return 结果
     */
    public AppUser selectAppUserByUserName(String userName);
}
